
import api from 'src/plugins/http/api';
import httpServer from 'src/plugins/http';

export function getTag(o: IO) {
    return httpServer({ 'url': api.getTag, ...o.opts }, o.data || {});
}

export function getArticle(o: IO) {
    return httpServer({ 'url': api.getArticle, ...o.opts }, o.data || {});
}

export function getComment(o: IO) {
    return httpServer({ 'url': api.getComment, ...o.opts }, o.data || {});
}

export function searchComment(o: IO) {
    return httpServer({ 'url': api.searchComment, ...o.opts }, o.data || {});
}

export function searchReply(o: IO) {
    return httpServer({ 'url': api.searchReply, ...o.opts }, o.data || {});
}

export function addArticle(o: IO) {
    return httpServer({ 'url': api.addArticle, ...o.opts }, o.data || {});
}

export function addComment(o: IO) {
    return httpServer({ 'url': api.addComment, ...o.opts }, o.data || {});
}

export function addReply(o: IO) {
    return httpServer({ 'url': api.addReply, ...o.opts }, o.data || {});
}

export function getReply(o: IO) {
    return httpServer({ 'url': api.getReply, ...o.opts }, o.data || {});
}